﻿using System;
using System.Collections.Generic;

namespace MsTestUtilities.SolutionAnalysis.Testing
{
    public class ReferenceAssert : ItemAssert<Reference>
    {
        public ReferenceAssert(IEnumerable<Reference> items)
            : base(items)
        {            
        }

        protected override string ElementName(Reference element)
        {
            return element.ParentProject.Name + " referencing '" + element.Path + "'";
        }

        public ReferenceAssert Where(Predicate<Reference> predicate)
        {
            base.Filter(e => predicate(e));
            return this;
        }
    }
}
